package com.codeduck.business;

import com.codeduck.business.controller.BusinessController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ImportResource;

/**
 * 库存、订单、账号微服务链路测试方式
 * 1. 单元测试：{@link com.codeduck.business.BusinessServiceTest}
 * 2. 启动：{@link BusinessApplication}，从 web 端访问 {@link BusinessController#handleBusiness(com.codeduck.business.domain.BusinessBO)}
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @createDate: 2022-08-20
 *
 */
@SpringBootApplication(scanBasePackages = {"com.codeduck.business", "com.codeduck.common"},exclude = {DataSourceAutoConfiguration.class})
@ImportResource("classpath:dubbo/business-dubbo-service.xml")
@Slf4j
public class BusinessApplication {
    public static void main(String[] args) {
        SpringApplication.run(BusinessApplication.class, args);
    }
}
